<?php

$mdp = $_GET['mdp'];
$confirm = $_GET['confirm'];
if ($mdp == $confirm) {
      if (!empty($mdp) && preg_match('#^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^a-zA-Z0-9]).{8,}$#', $mdp))
        echo "0";
    else
        echo "1";
}else {
    echo "2";
}
?>

